home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / BACKUP / LOOK103.ZIP;1 / PREVIEW.MB1 < prev    next >
Encoding:
Text File  |  1993-04-08  |  9.7 KB  |  237 lines

  1. THIS IS AN UNFORMATTED PORTION OF THE MAKEBAT DOCUMENTATION, SO YOU CAN
  2. GET A BIT OF A FEEL FOR THE PROGRAM. SOME PARTS HAVE BEEN LEFT OUT.
  3.  
  4. HIGHLIGHTS:
  5.  
  6.   MAKEBAT 1.02 is primarily for use with the program LOOK.
  7.  
  8.   It will take a list you created with LOOK, and blend that list into a
  9.   functional batch file, that will carry out the commands you specify, and
  10.   do it on every file contained in the list.
  11.  
  12.   When you get right down to it, thats really all you CAN do with MAKEBAT,
  13.   use it on LOOK generated lists.
  14.                                   **** At least for right now ****
  15.  
  16. LEGAL STUFF:
  17.  
  18.  DISTRIBUTION:
  19.  
  20.    This copy of MAKEBAT is not to be distributed to others.
  21.    Only Registered users of LOOK are authorized to use MAKEBAT.
  22.  
  23.  WARRANTY/GUARANTEE:
  24.  
  25.  Huh???
  26.   This program is released "AS IS" there IS NO guarantee other than it
  27.   =WILL= take up disk space. The author will NOT be responsible
  28.   for any damage to your data, system, peace of mind or anything else.
  29.  
  30.   By using this program, YOU assume all responsability for its use.
  31.  
  32.   If you receive this or any other program developed by the author,
  33.   on a magnetic medium, we =will= guarantee the quality of the medium that
  34.   the program(s) are supplied on. Any defective disks will be replaced by
  35.   the author, for a period of 90 days from date of purchase.
  36.  
  37.   As always, we try to produce bug free products, but occasionally one sneaks
  38.   in. Should this be the case, I would like to hear about it, so the problem
  39.   can be corrected as soon as possible.
  40.   As to damage to your system or data, there should be none. Given the
  41.   nature of this program, if data is deleted or misplaced its because
  42.   YOU TOLD IT TO DO SO!
  43.  
  44. FUTURE VERSIONS:
  45.  
  46.    The author, is not obligated to produce further versions of this program.
  47.    The author also reserves the right to move =ANY= Shareware type software
  48.    to the status of Commercial type software if he sees fit to do so.
  49.  
  50.  
  51.  HOW TO USE:
  52.  
  53.      MAKEBAT ? - Presents a short help screen, just as a refresher.
  54.                  You can continue on to the Main Menu, or Exit from the Help
  55.                  Screen.
  56.  
  57.     MAKEBAT  -   Typing MAKEBAT alone, takes you to the Main Menu.
  58.  
  59.     You will be presented with several choices:
  60.  
  61.        (1) One Command Per File
  62.        (2) Two Commands Per File
  63.        (3) Three Commands Per File
  64.        (4) Four Commands Per  File
  65.        (H) Help
  66.        (Q) Quit
  67.  
  68.        Option:
  69.  
  70.   Press the key of your choice. Pressing an invalid key will sound a beep.
  71.   (H) will take you to the Help Screen, where you may continue, or leave the
  72.   program. and of course (Q) will put you back at the DOS prompt.
  73.  
  74.   Pressing (1,2,3,4) takes you to the menu where you set up the batch file
  75.   creation.
  76.  
  77.   I should explain the commands per file. You actually enter two commands
  78.   for each file, one goes at the beginning of the line, and one at
  79.   the end.
  80.   Two commands per file means you can have two command LINES for each file.
  81.  
  82.   I do belive some examples are due to be given.
  83.  
  84.   (1) would allow you to create a line such as this:
  85.  
  86.             COPY  FileName  A:\
  87.  
  88.       This would be written for each filename in the list.
  89.  
  90.   (2) would allow to create two lines, like this:
  91.  
  92.             COPY  FileName  A:\
  93.             DEL   Filename
  94.  
  95.   (4) might look like this:
  96.  
  97.              EDIT  FileName
  98.              COPY  FileName A:\
  99.              TYPE  FileName PRN
  100.              DEL   FileNAme
  101.  
  102.   You might ask, "What's the big deal about that?"
  103.   Well, if you wanted to copy all the files in the SAME directory to A:,
  104.   then delete them all, two commands at the DOS prompt would suffice.
  105.  
  106.   But say, you wanted to copy ALL files with the extension .TXT, no matter
  107.   WHERE on your Hard Drive they are, to the floppy in A:...THEN delete all
  108.   those same files.....a little more time and effort...right?
  109.  
  110.   But with LOOK and MAKEBAT you can do all this quickly and painlessly, and
  111.   in a lot less time. We will have a short Tutorial in a bit, first lets
  112.   cover what you will be doing to create the batch file.
  113.  
  114.   Once you have chosen the option for one or two commands, you are taken to
  115.   the creation screen.
  116.  
  117.   NOTE: All fields for information are limited as to how much information
  118.   they will accept. You cannot enter more than is allowed. Should you
  119.   attempt to do so, MAKEBAT will beep, and not accept the offending
  120.   character.
  121.   And while you are in each field, you have some editing keys available to
  122.   you, and the
  123.  
  124.     Editing keys are -
  125.     DeleteKey        - Delete character at the cursor.
  126.     LeftArrow        - Nondestructive move cursor to the left.
  127.     RightArrow       - Nondestructive move cursor to the right.
  128.     End              - Move cursor to end of input string.
  129.     Home             - Move cursor to start of input string.
  130.     Backspace        - Delete character to the left of cursor.
  131.     Ins              - Toggles insert mode. Insert cursor is a block.
  132.     Enter/Return     - Accepts values as entered.
  133.  
  134.   Values may be entered in Upper or lower case letters, they are all changed
  135.   to Upper case after you accept them. Except for the Display Message, this
  136.   will be displayed "exactly" as you enter it.
  137.  
  138.   The first thing you are asked for is a name for the batch file.
  139.   You can name it anything you want.  Be advised, if a batch file with the
  140.   same name already exists, it WILL be overwritten.
  141.   You do NOT need to give the extension .BAT, it is automagically added.
  142.   The name can be up to 8 characters long.
  143.  
  144.   Next you are asked for a message to display when the batchfile runs, it
  145.   may be left blank. Length limit is 30. This line will be displayed to the
  146.   screen when you run the batch file. If no message is specified, a blank
  147.   line will be displayed.
  148.  
  149.   If you have any commands/Programs you want to run before and/or after the
  150.   batch file has processed the list, enter them when prompted. Leave BLANK
  151.   if you do not want to execute anything.
  152.   You can actuall add another ECHO command for these lines if you wish.
  153.  
  154.   Now you are asked for the ListFile to use, if it resides in the directory
  155.   you are currently in, the the name alone will do. If the list is another
  156.   directory then you MUST give the complete path to it. It can be on another
  157.   drive, just include the drive letter too, as in:
  158.      A:\temp.lst
  159.  
  160.   Then we get to the meat of the matter, the commands.
  161.  
  162.   First you are asked for the BEGINNING command, this will be placed before
  163.   the filename. Length limit is 15.
  164.   Then you are asked for the ENDING command, this one will be placed after
  165.   the file name. If BEGINNING is COPY and ENDING is A:\SAMPLE  the resulting
  166.   line would look like this:  COPY FileName A:\ - written for each filename
  167.   in the LOOK list. Length limit is 30.
  168.  
  169.   If you chose (2) commands per line, you will be prompted for the second
  170.   line values, same as above, this follows for 3 & 4 commands also.
  171.  
  172.   Finally, you are asked if you want the >NUL added to each line, if you
  173.   have used batch files much, you know what this does, if not, an
  174.   explanation.  Directing output to NUL, effectivly keeps DOS from
  175.   displaying such things as -  1 file(s) copied - for each file it does a
  176.   copy on. So if the batch file you are creating is going to copy a number
  177.   of files, I suggest answering NO.
  178.   Hitting ENTER here will automaticaly answer Yes.
  179.  
  180.   You will also be asked if you want the batch file to DELETE the LOOK!
  181.   list, after processing is done.
  182.  
  183.   After all the above values have been entered, you will be asked to confirm
  184.   your entries. Check them over, then answer Yes to continue, No to change
  185.   them, or Exit to return to the opening menu.
  186.  
  187.   If you choose Yes, the process will begin. When its completed, you will be
  188.   informed of that fact, and returned to the Main screen, where you can
  189.   create another batch file or exit.
  190.  
  191. A TUTORIAL:
  192.  
  193.    Lets create a simple batch file, also a SAFE one, we don't want to mess
  194.    up your files during a learning session.  This is a step by step example,
  195.    please follow the steps carefuly.
  196.  
  197.  1. Fire up LOOK in interactive mode, have it create a list of all the .TXT
  198.     files on whichever drive you have or want to use. You can also use some
  199.     other search text, I use .TXT as an example.
  200.  
  201.  2. Once the list has been created, fire up MAKEBAT and select (1) for one
  202.     command per file.
  203.     For the name enter BLAST, (ok, use something else then..)
  204.     For the Message, enter: A MAKEBAT Dry Run!
  205.     For the BEGINNING command enter: Echo
  206.     For the ENDING command, just hit ENTER, we don't need one for this.
  207.     When asked to include the >NUL answer No, we definetly want everything
  208.     displayed on the screen.
  209.  
  210.     Now, if you're done all as I asked, Answer Yes at the confirmation
  211.     prompt.......Walla! you're done.
  212.  
  213.     Quit MAKEBAT, and at the DOS prompt type BLAST ( unless you named it
  214.     something else)...what should happen now, is your BLAST.BAT will simply
  215.     type out each and every filename that was in the LOOK list to your
  216.     screen.  Pretty quick and simple heh?
  217.  
  218. AUTO ADDED LINES:
  219.  
  220.     MAKEBAT automaticaly adds some lines to the batchfile while creating it.
  221.     It writes a couple of information lines at the beginning, giving the name
  222.     of the List used and some program information.
  223.  
  224.     It inserts the @Echo Off command, and also the Cls command.
  225.     The Cls clears the screen at startup, the @Echo Off assures that the DOS
  226.     commands are not echoed to the screen. (DOS 3.0 and later)
  227.  
  228.     At the bottom of the batch file it writes an End Of File marker line.
  229.  
  230.  That should about cover it, with some experimentation, I'm sure you can
  231.  come up with some nifty ways to use LOOK and MAKEBAT to help you make you
  232.  computing easier!
  233.  
  234.  
  235.   For Support information please refer to LOOK.DOC
  236.  
  237.